import service from '@/utils/request'

// @Tags EyeNumber
// @Summary 创建眼型编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumber true "创建眼型编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /eyeNumber/createEyeNumber [post]
export const createEyeNumber = (data) => {
  return service({
    url: '/eyeNumber/createEyeNumber',
    method: 'post',
    data
  })
}

// @Tags EyeNumber
// @Summary 删除眼型编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumber true "删除眼型编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeNumber/deleteEyeNumber [delete]
export const deleteEyeNumber = (params) => {
  return service({
    url: '/eyeNumber/deleteEyeNumber',
    method: 'delete',
    params
  })
}

// @Tags EyeNumber
// @Summary 批量删除眼型编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除眼型编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeNumber/deleteEyeNumber [delete]
export const deleteEyeNumberByIds = (params) => {
  return service({
    url: '/eyeNumber/deleteEyeNumberByIds',
    method: 'delete',
    params
  })
}

// @Tags EyeNumber
// @Summary 更新眼型编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumber true "更新眼型编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /eyeNumber/updateEyeNumber [put]
export const updateEyeNumber = (data) => {
  return service({
    url: '/eyeNumber/updateEyeNumber',
    method: 'put',
    data
  })
}

// @Tags EyeNumber
// @Summary 用id查询眼型编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.EyeNumber true "用id查询眼型编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /eyeNumber/findEyeNumber [get]
export const findEyeNumber = (params) => {
  return service({
    url: '/eyeNumber/findEyeNumber',
    method: 'get',
    params
  })
}

// @Tags EyeNumber
// @Summary 分页获取眼型编号列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取眼型编号列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /eyeNumber/getEyeNumberList [get]
export const getEyeNumberList = (params) => {
  return service({
    url: '/eyeNumber/getEyeNumberList',
    method: 'get',
    params
  })
}
